/*
 * @Author: 吴思浪
 * @Date: 2021-12-12 11:01:26
 * @LastEditors: 胡俊/treence
 * @LastEditTime: 2022-06-24 17:03:01
 * @Description: 
 * @Company: 3xData
 * @youWant: add you want
 */
import { site_list, site_add, site_update, site_form, site_remove } from '@/api/site.js'


const site = {
    state: {

    },
    mutations: {



    },
    actions: {
        site_list ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                site_list(obj, function (data) {
                    resolve(data)
                })
            })
        },
        site_add ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                site_add(obj, function (data) {
                    resolve(data)
                })
            })
        },
        site_update ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                site_update(obj, function (data) {
                    resolve(data)
                })
            })
        },
        site_form ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                site_form(obj, function (data) {
                    resolve(data)
                })
            })
        },
        site_remove ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                site_remove(obj, function (data) {
                    resolve(data)
                })
            })
        },


    }
}

export default site